home *** CD-ROM | disk | FTP | other *** search
/ Beano - Dennis the Menace Cardz / Beano Cardz: Dennis the Menace.iso / pc / email.dxr / 00012.ls < prev    next >
Encoding:
Text File  |  2001-04-19  |  892 b   |  32 lines

  1. on startMovie
  2.   if the machineType = 256 then
  3.     if XtraAvailable("DirectOS") and XtraAvailable("FileIO") then
  4.       put GetUserEmailPref(1) into field "From"
  5.       put GetUserEmailPref(2) into field "MailServer"
  6.     else
  7.       alert("DirectEmail Xtra sample movie cannot locate your email and mail server addresses, because FileIO and/or DirectOS Xtras are not installed. Please enter those addresses manually, or install FileIO and DirectOS Xtras for automatic confiugration.")
  8.     end if
  9.   else
  10.     erase(member(18))
  11.     put GetUserEmailPref(1) into field "From"
  12.     put GetUserEmailPref(2) into field "MailServer"
  13.   end if
  14.   puppetSprite(20, 1)
  15.   puppetSprite(21, 1)
  16. end
  17.  
  18. on stopMovie
  19.   global email
  20.   email = 0
  21. end
  22.  
  23. on XtraAvailable XtraName
  24.   repeat with i = 1 to the number of xtras
  25.     if xtra(i).name = XtraName then
  26.       return 1
  27.       exit
  28.     end if
  29.   end repeat
  30.   return 0
  31. end
  32.